<!-- 太阳系动画 -->
<template>
  <div>
    <ContentTitle title="太阳系动画" class="juli"></ContentTitle>
    <div class="galaxy">
      <div class="sun">太阳</div>
      <div class="mercury">水星</div>
      <div class="venus"></div>
      <div class="earth"></div>
    </div>
  </div>
</template>

<script>
export default {
  mounted() {},
  computed: {},
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang="less" scoped>
// 太阳系
.galaxy {
  width: 1300px;
  height: 1300px;
  background-color: #121b74;
  position: relative;
}
.sun {
  width: 100px;
  height: 100px;
  background-color: #fe5f55;
  border-radius: 50%;
  text-align: center;
  line-height: 100px;
  position: absolute;
  top: 600px;
  left: 600px;
}

.mercury {
  width: 50px;
  height: 50px;
  background-color: #feda77;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  position: absolute;
  left: 700px;
  top: 625px;
  transform-origin: -50px 25px;
  animation: rotation 2.4s linear infinite;
}
@keyframes rotation {
  to {
    transform: rotate(1turn);
  }
}
</style>
